package com.lam.framework.operLog.model;

import com.lam.framework.operLog.enums.LogSave;

/**
 * 操作日志记录表 oper_log
 * 
 * @author lam
 */
public class OperateLog {
	
	/** 操作模块 */
	protected String title;
	
	/** 操作功能描述 */
	protected String oper;

	/** 业务类型*/
	protected String businessType;

	/** 操作类别（other-其它 manage-后台用户 xcx-小程序） */
	protected String operatorType;
	
	/** 是否记录操作日志 */
	protected LogSave logSave;
	
	/** 是否保存请求的参数(1是 0否) */
	protected int saveReqData;
	
	/** 是否保存返回的结果(1是 0否) */
	protected int saveResData;
	
	/** 是否在请求日志里面打印请求参数(1是 0否) */
	protected int printReqData;
	
	/** 是否在请求日志里面打印返回结果(1是 0否) */
	protected int printResData;
	
	/** 是否打印运行耗时(1是 0否) */
	protected int elapsedTime;
	
	/** 是否打印请求来源ip(1是 0否) */
	protected int printIp;
	
	/** 处理方法 */
	protected String handler;

	/** 请求方式 */
	protected String reqMethod;

	/** 请求url */
	protected String reqUrl;

	/** 请求ip */
	protected String reqIp;
	/** 浏览器类型 */
	protected String browser;
	/** 操作系统 */
	protected String os;

	/** 请求参数 */
	protected String reqParam;
	
	/** 执行参数 */
	protected String operParam;

	/** 返回结果 */
	protected String resResult;

	/** 操作状态（SUCCESS-成功 FAIL-失败 EXCEPTION-异常） */
	protected String reqStatus;

	/** 错误消息 */
	protected String reqDesc;
	
	/** 请求耗时 */
	protected long elTime;

	/** 操作时间 */
	protected String operTime;
	
	/** 操作人员 */
	protected String operName;
	
	protected String remark;
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getOper() {
		return oper;
	}

	public void setOper(String oper) {
		this.oper = oper;
	}

	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}

	public String getOperatorType() {
		return operatorType;
	}

	public void setOperatorType(String operatorType) {
		this.operatorType = operatorType;
	}

	public boolean saveReqData() {
		return saveReqData == 1;
	}
	
	public int getSaveReqData() {
		return saveReqData;
	}

	public void setSaveReqData(int saveReqData) {
		this.saveReqData = saveReqData;
	}

	public boolean saveResData() {
		return saveResData == 1;
	}
	public int getSaveResData() {
		return saveResData;
	}

	public void setSaveResData(int saveResData) {
		this.saveResData = saveResData;
	}

	public boolean printReqData() {
		return printReqData == 1;
	}
	
	public int getPrintReqData() {
		return printReqData;
	}

	public void setPrintReqData(int printReqData) {
		this.printReqData = printReqData;
	}

	public boolean printResData() {
		return printResData == 1;
	}
	
	public int getPrintResData() {
		return printResData;
	}

	public void setPrintResData(int printResData) {
		this.printResData = printResData;
	}

	public boolean elapsedTime() {
		return elapsedTime == 1;
	}
	
	public int getElapsedTime() {
		return elapsedTime;
	}

	public void setElapsedTime(int elapsedTime) {
		this.elapsedTime = elapsedTime;
	}

	public boolean printIp() {
		return printIp == 1;
	}
	
	public int getPrintIp() {
		return printIp;
	}

	public void setPrintIp(int printIp) {
		this.printIp = printIp;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public String getReqMethod() {
		return reqMethod;
	}

	public void setReqMethod(String reqMethod) {
		this.reqMethod = reqMethod;
	}

	public String getReqUrl() {
		return reqUrl;
	}

	public void setReqUrl(String reqUrl) {
		this.reqUrl = reqUrl;
	}

	public String getReqIp() {
		return reqIp;
	}

	public void setReqIp(String reqIp) {
		this.reqIp = reqIp;
	}

	public String getReqParam() {
		return reqParam;
	}

	public void setReqParam(String reqParam) {
		this.reqParam = reqParam;
	}

	public String getOperParam() {
		return operParam;
	}

	public void setOperParam(String operParam) {
		this.operParam = operParam;
	}

	public String getResResult() {
		return resResult;
	}

	public void setResResult(String resResult) {
		this.resResult = resResult;
	}

	public String getReqStatus() {
		return reqStatus;
	}

	public void setReqStatus(String reqStatus) {
		this.reqStatus = reqStatus;
	}

	public String getReqDesc() {
		return reqDesc;
	}

	public void setReqDesc(String reqDesc) {
		this.reqDesc = reqDesc;
	}

	public String getOperTime() {
		return operTime;
	}

	public void setOperTime(String operTime) {
		this.operTime = operTime;
	}

	public String getOperName() {
		return operName;
	}

	public void setOperName(String operName) {
		this.operName = operName;
	}

	public long getElTime() {
		return elTime;
	}

	public void setElTime(long elTime) {
		this.elTime = elTime;
	}

	public LogSave getLogSave() {
		return logSave;
	}

	public void setLogSave(LogSave logSave) {
		this.logSave = logSave;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getBrowser() {
		return browser;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

}
